package demo;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘远望
 * Date: 2025-03-27
 * Time: 20:08
 */
public class Test {
    public static void main(String[] args) {
        Cardfunc cardfunc = new Cardfunc();
        //买牌
        System.out.println("洗牌前");
        List<Card> cardList = cardfunc.buyCard();
        System.out.println(cardList);

        //洗牌
        System.out.println("洗牌后");
        cardfunc.shuffle(cardList);
        System.out.println(cardList);

        //3个人 每个人轮流摸5张牌
        List<List<Card>> ret = cardfunc.play(cardList);
        for (int i = 0; i < ret.size(); i++) {
            System.out.println("第" + (i + 1) + "个人的牌" + ret.get(i));
        }
        System.out.println("剩下的牌");
        System.out.println(cardList);
    }
}
